package HomeWork.bufferedReader;

public class StudentExce {
    private  int age;

    public StudentExce(int age) {
        this.age = age;
    }

    public StudentExce() {
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        if(age<0||age>100){
            throw new RuntimeException();
        }
        this.age = age;
    }
}
